package com.lagou.io;

import java.io.InputStream;

public class Resources {
    //根据配置文件路径，将配置文件记载到字节流，存储在内存中
    public static InputStream getResoucesAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return  resourceAsStream;

    }
}
